package sg.edu.nus.iss.club.gui;
import java.awt.Button;
import java.awt.Panel;
import java.awt.event.*;
import java.util.*;
import sg.edu.nus.iss.club.*;
import sg.edu.nus.iss.club.util.*;
import javax.swing.*;

public class RemoveMemberDialog extends ConfirmDialog {
	ClubApplication parent;
	int memberNum;
	
	public RemoveMemberDialog(ClubApplication parent, int selectedMember) {
	
		super(parent.getClubWindow(), "Confirm Remove Member", "Are you confirm to remove selected Member No "+ selectedMember);
		this.parent = parent;
		this.memberNum = selectedMember;
	}


    public boolean performOkAction () {
    	
    		parent.removeMemeber(memberNum);
    		return true;
    }
    
}
